package io.geekidea.boot.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 资源管理 DTO
 */
@Data
@Schema(description = "修改资源数据参数")
public class ResourceDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "资源名称")
    @NotBlank(message = "资源名称不能为空")
    @Length(max = 100, message = "资源名称长度超过限制")
    private String name;

    @Schema(description = "版本")
    private String version;

    @Schema(description = "资源类型code")
    @NotBlank(message = "资源类型code不能为空")
    @Length(max = 100, message = "资源类型code长度超过限制")
    private String resourceTypeCode;

    @Schema(description = "年级")
    private String grade;

    @Schema(description = "班别")
    private String className;

    @Schema(description = "备注")
    private String remark;


}
